<?php

$dzq_releases = [
    "v0.5.200522" => [],
    "v0.5.200508" => [
        "migration_file_on_fail" => "https://discuzq-docs-1258344699.cos.ap-guangzhou.myqcloud.com/2020_04_14_104730_update_users_table.php"
    ],
    "v0.5.200424" => [],
    "v0.5.200410" => [
        "config" => [
            [
                "find" => "/^            'attachment' =>.*'cos' =>/",
                "replace" => <<< REPLACE
            'attachment' => [
                'driver' => 'local',
                'root'   => storage_path('app'),
                'url'    => 'attachment'
            ],
            'attachment_cos' => [
                'driver' => 'cos',
                'root'   => storage_path('app/public/attachment'),
                'url'    => 'attachment'
            ],
            'cos' =>
REPLACE
            ]
        ]
    ],
    "v0.5.200403" => [],
    "v0.4.200331" => [
        "config" => [
            [
                "find" => "/^                'avatar' =>.*'attachment' =>/",
                "replace" => <<< REPLACE
                'avatar' => [
                    'driver' => 'local',
                    'root' => storage_path('app/public/avatars'),
                    'url' => 'avatar',
                    'visibility' => 'public',
                ],
                'avatar_cos' => [
                    'driver' => 'cos',
                    'root' => storage_path('app/public/avatars'),
                    'url' => 'avatar',
                    'visibility' => 'public',
                ],
                'attachment' =>
REPLACE
            ],
            [
                "find" => "    'debug' => true,",
                "replace" => "    'debug' => false,"
            ],
            [
                "find" => "'password' => '123'",
                "replace" => "'password' => ''"
            ]
        ]
    ]
];
